function getUpdateTime(timestamp) {
    const now = Date.now();
    const diff = now - timestamp; // 计算时间差（毫秒）
    const diffMinutes = Math.floor(diff / 60000); // 转换为分钟
    if (diffMinutes < 1) {
        return '刚刚更新';
    } else if (diffMinutes > 5 && diffMinutes < 10) {
        return `${diffMinutes}分钟前更新`;
    } else {
        // 格式化具体时间
        const date = new Date(timestamp);
        const year = date.getFullYear();
        const month = String(date.getMonth() + 1).padStart(2, '0');
        const day = String(date.getDate()).padStart(2, '0');
        const hours = String(date.getHours()).padStart(2, '0');
        const minutes = String(date.getMinutes()).padStart(2, '0');
		const seconds = String(date.getSeconds()).padStart(2,'0')
        return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
    }
}